package name.pehl.taoki.security;

import org.restlet.data.MediaType;
import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;

/**
 * @author $Author: harald.pehl $
 * @version $Date: 2010-09-13 10:31:05 +0000 (Mon, 13 Sep 2010) $ $Revision: 167 $
 */
public class HitchhikingResourceSecuredAnnotation extends ServerResource
{
    @Secured
    @Override
    protected Representation get() throws ResourceException
    {
        return new StringRepresentation("Don't panic", MediaType.TEXT_PLAIN);
    }
}
